#ifndef __LAYERCOMBOBOX_H__
#define __LAYERCOMBOBOX_H__

#define LS_LIGHT_ON			0x0001
#define PS_LOCK_OPEN		0x0004
#define ICON_SIZE			16

class TTypeComboBox : public CComboBox
{
protected:
	HWND m_hListBox;
public:
	TTypeComboBox();
	void RefreshList();
	void ClearItems();

public:
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
	virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);

public:
	virtual ~TTypeComboBox();

public:
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnDropdown();
	afx_msg void OnEditupdate();
	afx_msg void OnSelendok();
	afx_msg void OnSelchange();
	afx_msg LRESULT OnCtlColorListBox(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()
};

class TFlorComboBox : public TTypeComboBox
{
public:
	TFlorComboBox(): TTypeComboBox(){}
	void RefreshList();
	void ClearItems();
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
public:
	afx_msg LRESULT OnCtlColorListBox(WPARAM wParam, LPARAM lParam);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnDropdown();
	afx_msg void OnEditupdate();
	afx_msg void OnSelendok();
	afx_msg void OnSelchange();
	DECLARE_MESSAGE_MAP()
	
};


#endif
